Integrand size = 12, antiderivative size = 16 \[ \int \frac {\cot (x)}{-\cot (x)+\csc (x)} \, dx=-x-\frac {\sin (x)}{1-\cos (x)} \]
[Out]
Time = 0.07 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {4477, 2814, 2727} \[ \int \frac {\cot (x)}{-\cot (x)+\csc (x)} \, dx=-x-\frac {\sin (x)}{1-\cos (x)} \]
[In]
[Out]
Rule 2727
Rule 2814
Rule 4477
Rubi steps \begin{align*} \text {integral}& = \int \frac {\cos (x)}{1-\cos (x)} \, dx \\ & = -x+\int \frac {1}{1-\cos (x)} \, dx \\ & = -x-\frac {\sin (x)}{1-\cos (x)} \\ \end{align*}
Time = 0.07 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00 \[ \int \frac {\cot (x)}{-\cot (x)+\csc (x)} \, dx=\frac {1}{2} \left (-2 x-2 \cot \left (\frac {x}{2}\right )\right ) \]
[In]
[Out]
Time = 0.22 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.06
method | result | size |
default | \(-\frac {1}{\tan \left (\frac {x}{2}\right )}-2 \arctan \left (\tan \left (\frac {x}{2}\right )\right )\) | \(17\) |
risch | \(-x -\frac {2 i}{{\mathrm e}^{i x}-1}\) | \(17\) |
[In]
[Out]
none
Time = 0.25 (sec) , antiderivative size = 14, normalized size of antiderivative = 0.88 \[ \int \frac {\cot (x)}{-\cot (x)+\csc (x)} \, dx=-\frac {x \sin \left (x\right ) + \cos \left (x\right ) + 1}{\sin \left (x\right )} \]
[In]
[Out]
\[ \int \frac {\cot (x)}{-\cot (x)+\csc (x)} \, dx=- \int \frac {\cot {\left (x \right )}}{\cot {\left (x \right )} - \csc {\left (x \right )}}\, dx \]
[In]
[Out]
none
Time = 0.30 (sec) , antiderivative size = 23, normalized size of antiderivative = 1.44 \[ \int \frac {\cot (x)}{-\cot (x)+\csc (x)} \, dx=-\frac {\cos \left (x\right ) + 1}{\sin \left (x\right )} - 2 \, \arctan \left (\frac {\sin \left (x\right )}{\cos \left (x\right ) + 1}\right ) \]
[In]
[Out]
none
Time = 0.29 (sec) , antiderivative size = 12, normalized size of antiderivative = 0.75 \[ \int \frac {\cot (x)}{-\cot (x)+\csc (x)} \, dx=-x - \frac {1}{\tan \left (\frac {1}{2} \, x\right )} \]
[In]
[Out]
Time = 22.77 (sec) , antiderivative size = 10, normalized size of antiderivative = 0.62 \[ \int \frac {\cot (x)}{-\cot (x)+\csc (x)} \, dx=-x-\mathrm {cot}\left (\frac {x}{2}\right ) \]
[In]
[Out]